package com.kaifamiao.www.demo.do0801.factory;

public abstract class Human {
    abstract void printColor();
    abstract void talk();

}

class BlackHuman extends Human{
    @Override
    void printColor() {
        System.out.println("black");
    }

    @Override
    void talk() {
        System.out.println("高卢乌鸡");
    }

}
class WhiteHuman extends Human{

    @Override
    void printColor() {
        System.out.println("white");
    }

    @Override
    void talk() {
        System.out.println("自由");
    }
}
abstract class YellowHuman extends Human{}
class Chinese extends YellowHuman{

    @Override
    void printColor() {
        System.out.println("yellow");
    }

    @Override
    void talk() {
        System.out.println("龙的传人");
    }
}